package day04.lambda;

public class Lian02 {
    public static void main(String[] args) {
        uysy(new Qdd() {
            @Override
            public int calc(int a, int b) {
                return a + b;
            }
        });
        uysy((int a, int b) -> a + b
        );
    }

    public static void uysy(Qdd qdd) {
        int num = qdd.calc(10, 20);
        System.out.println(num);
    }
}

interface Qdd {
    int calc(int a, int b);
}
